package cn.italkcloud.cph.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * VOS费用记录
 * </p>
 *
 * @author dominate
 * @since 2024-07-05
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("vos_fee_log")
@ToString
public class VosFeeLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 所属账号ID
     */
    @TableField("account_id")
    private Integer accountId;

    /**
     * VOS账号ID
     */
    @TableField("vos_customer_id")
    private Integer vosCustomerId;

    /**
     * 记录类型 0手动充值/扣费 1话费消耗
     */
    @TableField("`type`")
    private Integer type;

    /**
     * 变更金额
     */
    @TableField("`change`")
    private BigDecimal change;

    /**
     * 变更后余额
     */
    @TableField("balance")
    private BigDecimal balance;

    @TableField("comment")
    private String comment;

    @TableField("create_time")
    private Date createTime;

    @TableField("update_time")
    private Date updateTime;


}
